//
//  SearchTableViewCell.m
//  HYHOME
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "SearchTableViewCell.h"

@implementation SearchTableViewCell


- (void)dealloc{

    [self.content release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.content = [[UILabel alloc]init];
        [self.contentView addSubview:self.content];
        
        
    }
    return self;


}

- (void)layoutSubviews{

    [super layoutSubviews];
    
    self.content.frame =CGRectMake(0, 0, self.frame.size.width, 70
                                   );
    
    self.content.numberOfLines = 0;
    
    


}

-(void)passModel:(SearchModel *)model{

    self.content.text = model.content;


}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
